<div class="panel panel-default">
    <div class="panel-body panel-body-nopadding">

        <form class="form-horizontal form-bordered" method="post">

            <div class="form-group">
                <label class="col-sm-3 control-label">抓取任务名称</label>
                <div class="col-sm-6">
                    <input type="text" placeholder="抓取任务名称" class="form-control" name="title" value="{$taskInfo.title}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">分类</label>
                <div class="col-sm-6">
                    <input type="text" placeholder="分类" class="form-control" name="category" value="{$taskInfo.cid|getCategory=title}" disabled>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">解析器</label>
                <div class="col-sm-6">
                    <select class="form-control input-nm mb15" name="parseid">
                        <volist name="parseList" id="vo">
                        <option value="{$vo.id}" <eq name="vo.id" value="taskInfo.parseid">selected</eq>>{$vo.title}</option>
                        </volist>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">链接</label>
                <div class="col-sm-6">
                    <textarea name="urls" placeholder="每行一条" class="form-control" rows="8">{$taskInfo.urls}</textarea>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">间隔时间</label>
                <div class="col-sm-6">
                    <input type="text" placeholder="以1天为单位" class="form-control" name="timespan" value="{$taskInfo.timespan}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">状态</label>
                <div class="col-sm-6">
                    <div class="radio">
                        <label><input type="radio" name="status" value="1" <eq name="taskInfo.status" value="1">checked</eq>> 启用</label> &nbsp;&nbsp;&nbsp;
                        <label><input type="radio" name="status" value="0" <eq name="taskInfo.status" value="0">checked</eq>> 禁用</label>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label"></label>
                <div class="col-sm-2">
                    <input type="hidden" name="id" value="{$taskInfo.id}" >
                    <input type="hidden" name="cid" value="{$taskInfo.cid}" >
                    <input type="submit" class="btn btn-primary" value=" 提 交 " > &nbsp;
                    <a href="{:U('/task')}" class="btn btn-default"> 列 表 </a>
                </div>
            </div>
        </form>

    </div>
</div>
